<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
        /*
            量词
        */
        var a="hello 2323";
        var reg=/\d+/;
        var reg1=/\d*/;
        var reg2=/\d?/;
        console.log(reg.test(a));
        console.log(reg1.test(a));
        console.log(reg2.test(a));
        
    </script>
</body>
</html>